<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title><?php echo lang('pg_admin_layout') ?></title>
        <link rel="stylesheet" href="<?php echo base_url() . SKINSPATH; ?>admin/css/reset.css" type="text/css"/>
        <link rel="stylesheet" href="<?php echo base_url() . SKINSPATH; ?>admin/css/screen.css" type="text/css"/>
        <link rel="stylesheet" href="<?php echo base_url() . SKINSPATH; ?>js/ui/themes/base/jquery.ui.all.css" type="text/css"/>

        <!--[if IE 7]>
        <link rel="stylesheet" type="text/css" href="<?php echo base_url() . SKINSPATH; ?>admin/css/ie7.css" />
        <![endif]-->
        <script type="text/javascript" src="<?php echo base_url() . SKINSPATH; ?>js/jquery/jquery-1.8.3.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url() . SKINSPATH; ?>js/ui/jquery.ui.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url() . SKINSPATH; ?>js/idtabs/jquery.idtabs.js"></script>
        <script type="text/javascript" src="<?php echo base_url() . SKINSPATH; ?>js/datatables/jquery.datatables.js"></script>
        <script>
            var base_url = "<?php echo base_url(); ?>";
            var _lang = {
                confirm_delete: '<?php echo lang('confirm_delete') ?>',
                confirm_add: '<?php echo lang('confirm_add') ?>',
                confirm_edit: '<?php echo lang('confirm_edit') ?>'
            };
        </script>
        <script type="text/javascript" src="<?php echo base_url() . SKINSPATH; ?>admin/js/common.js"></script>
        <script type="text/javascript" src="<?php echo base_url() . SKINSPATH; ?>admin/js/action.js"></script>
        <script type="text/javascript" src="<?php echo base_url() . SKINSPATH; ?>admin/js/site.js"></script>
    </head>
    <body>
        <!-- <input type="hidden" id="base_url" value="<?php echo site_url(); ?>" /> -->
        <div class="clear">
            <div class="sidebar"> <!-- *** sidebar layout *** -->
                <div class="menu">
                    <span class="ul-header">
                        <a class="toggle visible" href="javascript:void(0)" id="toggle-clientnav"><?php echo lang('link_master_manager') ?></a>
                    </span>
                    <ul id="clientnav">
                        <li><a href="<?php echo base_url(); ?>category" class="icn_manage_pages"><?php echo lang('category') ?></a></li>
                        <li><a href="<?php echo base_url(); ?>provider" class="icn_manage_pages"><?php echo lang('provider') ?></a></li>
                        <li><a href="<?php echo base_url(); ?>product" class="icn_manage_pages"><?php echo lang('product') ?></a></li>
                        <li><a href="<?php echo base_url(); ?>member" class="icn_manage_pages"><?php echo lang('member') ?></a></li>
                        <li><a href="<?php echo base_url(); ?>termination" class="icn_manage_pages"><?php echo lang('termination') ?></a></li>
                        <li><a href="<?php echo base_url(); ?>user" class="icn_manage_pages"><?php echo lang('user') ?></a></li>
                    </ul>
                </div>
            </div>

            <div class="main"> <!-- *** mainpage layout *** -->
                <div class="main-wrap">
                    <div class="header clear">
                        <ul class="links clear">
                            <li><strong><?php echo lang('lbl_welcome') ?> <a href="<?php echo base_url(); ?>"><?php echo $data['username']; ?></a> :</strong></li>
                            <li><a href="<?php echo base_url(); ?>user/auth/logout"><img src="<?php echo base_url(); ?>assets/admin/images/ico_logout_24.png" alt="" class="icon" /> <span class="text"><?php echo lang('lbl_logout') ?></span></a></li>
                        </ul>
                    </div>

                    <div class="page clear">
                        <?php $this->load->view($template, $data); ?>
                        <div class="clear"><!-- end of content-box --><!-- end of content-box -->
                        </div><!-- /.clear --><!-- end of content-box --><!-- end of content-box --></div><!-- end of page -->

                    <div class="footer clear">
                        <span class="copy"><strong>© <?php echo lang('lbl_copyright') ?></strong></span>
                    </div>
                </div>
            </div>
        </div>

    </body>
</html>
